From: Lars Ingebrigtsen Date: Thu, 20 Jan 2022 08:36:04 +0000 (+0100) Subject: Improve textsec-domain-suspicious-p message X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~16^2~3354 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=536ad66ae3713a18460d0fec16bfc9c60b60016c;p=emacs.git Improve textsec-domain-suspicious-p message * lisp/international/textsec.el (textsec-domain-suspicious-p): Improve warning message. --- diff --git a/lisp/international/textsec.el b/lisp/international/textsec.el index c30d997b4fe..e6a04d93de5 100644 --- a/lisp/international/textsec.el +++ b/lisp/international/textsec.el @@ -252,7 +252,10 @@ or use certain other unusual mixtures of characters." domain) ;; Does IDNA allow it? (unless (puny-highly-restrictive-domain-p domain) - (throw 'found (format "`%s' is not highly-restrictive" domain))) + (throw + 'found + (format "`%s' mixes characters from different scripts in suspicious ways" + domain))) ;; Check whether any segment of the domain name is confusable with ;; an ASCII-only segment. (dolist (elem (split-string domain "\\."))